package com.lswms.modules.lswms.entity.recipient;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lswms.common.entity.LswmsBaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ${comments}
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lswms_Recipients")
public class RecipientsEntity extends LswmsBaseEntity {
	private static final long serialVersionUID = 1L;

	@TableField(value = "recipientkey")
	private Integer recipientkey;
	/**
	 * 领用人卡号
	 */
	@TableField(value = "cardid")
	private String cardid;
	/**
	 * 领用人ID
	 */
	@TableField(value = "recipientid")
	private String recipientid;
	/**
	 * 领用人
	 */
	@TableField(value = "recipient")
	private String recipient;
	/**
	 * 类型
	 */
	@TableField(value = "recipienttype")
	private String recipienttype;
	/**
	 * 优先级
	 */
	@TableField(value = "priority")
	private Integer priority;
	/**
	 * 状态
	 */
	@TableField(value = "status")
	private Integer status;
	/**
	 * 商品编码
	 */
	@TableField(value = "sku")
	private String sku;
	/**
	 * 预期数量
	 */
	@TableField(value = "preqty")
	private BigDecimal preqty;
	/**
	 * 数量
	 */
	@TableField(value = "qty")
	private BigDecimal qty;
	/**
	 * 领用时间
	 */
	@TableField(value = "recipienttime")
	private Date recipienttime;
	/**
	 * 发布人
	 */
	@TableField(value = "issuer")
	private String issuer;
	/**
	 * 批号
	 */
	@TableField(value = "lot")
	private String lot;
	/**
	 * 自库位
	 */
	@TableField(value = "fromloc")
	private String fromloc;
	/**
	 * 自托盘
	 */
	@TableField(value = "fromtray")
	private String fromtray;
	/**
	 * 自箱号
	 */
	@TableField(value = "frombox")
	private String frombox;
	/**
	 * 当前库位
	 */
	@TableField(value = "loc")
	private String loc;
	/**
	 * 当前托盘
	 */
	@TableField(value = "tray")
	private String tray;
	/**
	 * 当前箱号
	 */
	@TableField(value = "box")
	private String box;
	/**
	 * 至库位
	 */
	@TableField(value = "toloc")
	private String toloc;
	/**
	 * 至托盘
	 */
	@TableField(value = "totray")
	private String totray;
	/**
	 * 至箱号
	 */
	@TableField(value = "tobox")
	private String tobox;
	/**
	 * 仓库
	 */
	@TableField(value = "warehouse")
	private String warehouse;
	/**
	 * 部门
	 */
	@TableField(value = "department")
	private String department;
	/**
	 * 备用字段1
	 */
	@TableField(value = "reserve1")
	private String reserve1;
	/**
	 * 备用字段2
	 */
	@TableField(value = "reserve2")
	private String reserve2;
	/**
	 * 备用字段3
	 */
	@TableField(value = "reserve3")
	private String reserve3;
	/**
	 * 备用字段4
	 */
	@TableField(value = "reserve4")
	private String reserve4;
	/**
	 * 备用字段5
	 */
	@TableField(value = "reserve5")
	private String reserve5;

	@TableField(exist = false)
	private String recipienttypestr;

	@TableField(exist = false)
	private String statusstr;

	@TableField(exist = false)
	private BigDecimal backqty;

	@TableField(exist = false)
	private String descr;
	
	@TableField(exist = false)
	private String factorycdoe;
	
	 /**
     * 生产日期
     */
	@TableField(exist = false)
     @DateTimeFormat(pattern="yyyy-MM-dd")
 	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	private Date lot1;
    /**
     * 有效日期
     */
	@TableField(exist = false)
     @DateTimeFormat(pattern="yyyy-MM-dd")
 	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	private Date lot2;
    /**
     * 属性3
     */
	@TableField(exist = false)
	private String lot3;
    /**
     * 属性4
     */
	@TableField(exist = false)
	private String lot4;
    /**
     * 属性5
     */
	@TableField(exist = false)
	private String lot5;
    /**
     * 属性6
     */
	@TableField(exist = false)
	private String lot6;
    /**
     * 属性7
     */
	@TableField(exist = false)
	private String lot7;
    /**
     * 属性8
     */
	@TableField(exist = false)
	private String lot8;
    /**
     * 属性9
     */
	@TableField(exist = false)
	private String lot9;
    /**
     * 属性10
     */
	@TableField(exist = false)
	private String lot10;
     /**
 	 * 属性11
 	 */
	@TableField(exist = false)
 	private String lot11;
 	/**
 	 * 属性12
 	 */
	@TableField(exist = false)
 	private String lot12;
 	/**
 	 * 属性13
 	 */
	@TableField(exist = false)
 	private String lot13;
 	/**
 	 * 属性14
 	 */
	@TableField(exist = false)
 	private String lot14;
 	/**
 	 * 属性15
 	 */
	@TableField(exist = false)
 	private String lot15;
	
	@TableField(exist = false)
	private BigDecimal inventoryqty ;
	
	@TableField(exist = false)
	private String  boxstr ;
	
	@TableField(exist = false)
	private String uniquecodes;

	@TableField(exist = false)
	private String isuniquecode;

}